package s47.dqj.dao;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;

import s47.dqj.bean.MedicalRecall;

public interface MedicalRecallDaoInf {

	@Resource(name = "sessionFactory")
	public abstract void setSupperSessionFactory(SessionFactory sessionFactory);

	/**
	 * 自定义查找召回记录
	 * @param hql
	 * @param pageNum
	 * @return
	 */
	public abstract List<MedicalRecall> findAllByCondition(String hql,
			Integer pageNum);

	/**
	 * 获取页数(对查找想要的DepartmentPositionCost记录分页)
	 * @return
	 */
	public abstract List<Integer> selectPageTotal(String tempHQL);

	/**
	 * 新增
	 * @param medicalRecall
	 */
	public abstract void save(MedicalRecall medicalRecall);

	/**
	 * 修改
	 * @param medicalRecall
	 */
	public abstract void update(MedicalRecall medicalRecall);

	/**
	 * 删除
	 * @param medicalRecall
	 */
	public abstract void delete(MedicalRecall medicalRecall);

}